﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetailView_Workorder.aspx.cs"
    Inherits="admin_DeatilView_Workorder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Work Order</title>
    <link href="../styles/client.css" rel="stylesheet" type="text/css" />

    <script runat="server">
        protected void eidtbutton(Object sender, EventArgs e)
        {

        }
        protected void eidtbutton_check(Object sender, EventArgs e)
        {

            workorderTextbox.ReadOnly = false;
            dateRecorded_tb.ReadOnly = false;
            //statusCheckbox.Enabled = true;
            check_editButton.Visible = false;
            check_updatebutton.Visible = true;
            Detail_tb.ReadOnly = false;
            dateRecorded_tb.ReadOnly = false;

        }
     
    </script>

</head>
<body>
    <h2>
        View Work Order
    </h2>
    <form id="form1" runat="server" class="form_box">
    <table>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="W/O #" CssClass="label"></asp:Label>
            </td>
            <td class="fields1">
                <asp:TextBox ID="workorderTextbox" runat="server" ReadOnly="true"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Date Recorded
            </td>
            <td class="fields1">
                <asp:TextBox ID="dateRecorded_tb" class="datepicker" ReadOnly="true" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Machine
            </td>
            <td class="fields1">
                <asp:TextBox ID="MachineName_tb" ReadOnly="true" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Detail
            </td>
            <td class="fields1">
                <asp:TextBox ID="Detail_tb" ReadOnly="true" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Completed
            </td>
            <td class="DropDownList">
                <asp:DropDownList ID="status_dropdownlist" runat="server" CssClass="DropDownList">
                    <asp:ListItem Text="Completed" Value="1">
                    </asp:ListItem>
                    <asp:ListItem Text="Outstanding" Value="0"></asp:ListItem>
                </asp:DropDownList>
                <%--<asp:CheckBox ID="statusCheckbox" Enabled=false Text="" runat="server" />--%>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="check_editButton" runat="server" Text="EDIT" 
                    OnClick="eidtbutton_check" CssClass="buttons"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="check_updatebutton" runat="server" Visible="false" Text="UPDATE"
                    OnClick="updatebutton_clicked" CssClass="buttons" />
            </td>
        </tr>
    </table>
    <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/client/SearchResults.aspx"
        OnClick="LinkButton1_Click" CssClass="backbtn">Return to Results</asp:LinkButton>
    </form>
</body>
</html>
